import { createApp } from 'vue'
import '@/style.css'
import App from '@/App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import router from '@/router'
import { createPinia } from 'pinia'

const app = createApp(App)
app.use(router)
app.use(createPinia())
import zhCnLocale from 'element-plus/es/locale/lang/zh-cn'; // 引入中文语言包
app.use(ElementPlus, { locale: zhCnLocale })
// 注册图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
